<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script src="js/vue.js"></script>
    <div id="app">
        {{ message }}
        <h1 v-text="message2"></h1>
        <p v-html="message3"></p>
        <input type="button" value="doit按钮" @click="doit">
        <li class="todo">{{ message2 }}</li>
    </div>
    <script>
        var app = new Vue({
            el: '#app',
            data: {
                message: "hello jjjj",
                message2: "hello vue",
                message3: "<a href='http://www.baidu.com'>百度</a>"
            },
            methods:{
                doit:function () {
                    alert("doit")
                }
            }
        })
    </script>
</body>
</html>